<?php

function dump($mValue, $bDieOnExit = 0) {
    echo '<pre>';
    print_r($mValue);
    echo '</pre>';

    if ($bDieOnExit)
        exit;
}